const fs = require("fs");
const path = require("path");

const filename = path.resolve(__dirname, './cs.txt')
const firfilename = path.resolve(__dirname, './复制文件')

async function stat(filename) {
    const result = await fs.promises.stat(filename)
    console.log(result);
    console.log("创建时间：", result.birthtime.toLocaleDateString());
}
stat(filename)
stat(firfilename)